package cn.tedu.hotel.serve.pojo.dto;

import lombok.Data;
import org.hibernate.validator.constraints.Range;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

@Data
public class ThemeImgUpdateDTO implements Serializable {
    private Long id;

    private String url;

    @NotNull(message = "必须提交地点")
    @NotEmpty(message = "地点不能为空")
    private String location;

    @NotNull(message = "必须提交地点")
    @Range(min = 1,message = "必须提交有效值")
    private Long themeId;
}
